import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/admin/site/page",
    method: "get",
    params: {
      ...params,
      current,
      size,
    },
  });
};
export const getSiteType = (params) => {
  return request({
    url: "/api/blade-system/dict/dictionary?code=site_type",
    method: "get",
    params: {
      ...params,
    },
  });
};
export const submit = (row) => {
  return request({
    url: "/admin/site/submit",
    method: "post",
    data: row,
  });
};
export const detail = (id) => {
  return request({
    url: "/admin/site/detail",
    method: "get",
    params: {
      id,
    },
  });
};
export const remove = (ids) => {
  return request({
    url: "/admin/site/remove",
    method: "post",
    params: {
      ids,
    },
  });
};
